.class public Lcom/waiqin365/lightapp/kehu/view/CountDownView;
.super Landroid/view/View;


# instance fields
.field private a:Landroid/graphics/Paint;

.field private b:Landroid/graphics/RectF;

.field private c:Landroid/graphics/Rect;

.field private d:F

.field private e:I

.field private f:I

.field private g:Ljava/lang/String;

.field private h:F

.field private i:F

.field private j:I

.field private k:I

.field private l:Lcom/waiqin365/lightapp/kehu/view/ac;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/high16 v0, 0x41200000    # 10.0f

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    const/16 v0, -0x5a

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->e:I

    iput v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->f:I

    const-string/jumbo v0, "60"

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->i:F

    const/16 v0, 0x3c

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->j:I

    iput v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->k:I

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/high16 v0, 0x41200000    # 10.0f

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    const/16 v0, -0x5a

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->e:I

    iput v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->f:I

    const-string/jumbo v0, "60"

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->i:F

    const/16 v0, 0x3c

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->j:I

    iput v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->k:I

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->b()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/CountDownView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->f:I

    return v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/CountDownView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->f:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/CountDownView;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/view/CountDownView;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->k:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->k:I

    return v0
.end method

.method private b()V
    .locals 2

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const/high16 v1, 0x40a00000    # 5.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->c:Landroid/graphics/Rect;

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/view/CountDownView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->k:I

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/view/CountDownView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->j:I

    return v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/kehu/view/CountDownView;)Lcom/waiqin365/lightapp/kehu/view/ac;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->l:Lcom/waiqin365/lightapp/kehu/view/ac;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->k:I

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->f:I

    const-string/jumbo v0, "60"

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/ab;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/ab;-><init>(Lcom/waiqin365/lightapp/kehu/view/CountDownView;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 0

    invoke-super {p0}, Landroid/view/View;->onDetachedFromWindow()V

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 13

    const/4 v12, 0x1

    const/high16 v7, 0x42340000    # 45.0f

    const-wide/high16 v10, 0x4008000000000000L    # 3.0

    const/4 v4, 0x0

    const-wide/high16 v8, 0x4000000000000000L    # 2.0

    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->b:Landroid/graphics/RectF;

    if-nez v0, :cond_0

    new-instance v0, Landroid/graphics/RectF;

    iget v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    iget v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->getMeasuredWidth()I

    move-result v3

    int-to-float v3, v3

    iget v5, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    sub-float/2addr v3, v5

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->getMeasuredHeight()I

    move-result v5

    int-to-float v5, v5

    iget v6, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    sub-float/2addr v5, v6

    invoke-direct {v0, v1, v2, v3, v5}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->b:Landroid/graphics/RectF;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {v0, v12}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const/high16 v1, 0x40a00000    # 5.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->getMeasuredWidth()I

    move-result v0

    int-to-double v0, v0

    div-double/2addr v0, v8

    double-to-float v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->getMeasuredHeight()I

    move-result v0

    int-to-double v0, v0

    div-double/2addr v0, v8

    double-to-float v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->i:F

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const-string/jumbo v1, "#74D4C2"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    iget v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    iget v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->i:F

    iget v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->d:F

    sub-float/2addr v2, v3

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const-string/jumbo v1, "#e0e0e0"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->b:Landroid/graphics/RectF;

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->e:I

    int-to-float v2, v0

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->f:I

    int-to-float v3, v0

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {v0, v7}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const-string/jumbo v1, "#1a1a1a"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->c:Landroid/graphics/Rect;

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->c:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->c:Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const/high16 v3, 0x41f00000    # 30.0f

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const-string/jumbo v3, "s"

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->c:Landroid/graphics/Rect;

    invoke-virtual {v2, v3, v4, v12, v5}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->c:Landroid/graphics/Rect;

    invoke-virtual {v2}, Landroid/graphics/Rect;->width()I

    move-result v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {v3, v7}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setFakeBoldText(Z)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    sget-object v4, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const/high16 v4, 0x3f800000    # 1.0f

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    sget-object v4, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->g:Ljava/lang/String;

    iget v4, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    add-int v5, v0, v2

    int-to-double v6, v5

    div-double/2addr v6, v8

    double-to-float v5, v6

    sub-float/2addr v4, v5

    iget v5, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->i:F

    int-to-double v6, v1

    div-double/2addr v6, v10

    double-to-float v6, v6

    add-float/2addr v5, v6

    iget-object v6, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {p1, v3, v4, v5, v6}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    const/high16 v4, 0x41e00000    # 28.0f

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setTextSize(F)V

    const-string/jumbo v3, "s"

    iget v4, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->h:F

    int-to-double v6, v0

    div-double/2addr v6, v8

    double-to-float v0, v6

    add-float/2addr v0, v4

    int-to-double v4, v2

    div-double/2addr v4, v8

    double-to-float v2, v4

    sub-float/2addr v0, v2

    iget v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->i:F

    int-to-double v4, v1

    div-double/2addr v4, v10

    double-to-float v1, v4

    add-float/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->a:Landroid/graphics/Paint;

    invoke-virtual {p1, v3, v0, v1, v2}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    return-void
.end method

.method public setOnCountingListener(Lcom/waiqin365/lightapp/kehu/view/ac;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CountDownView;->l:Lcom/waiqin365/lightapp/kehu/view/ac;

    return-void
.end method
